﻿// <copyright file="FieldElement.cs" company="Todd Aspeotis">
//  Copyright © 2011 Todd Aspeotis
// </copyright>

namespace LocalReportsEngine.ReportDefinitionElements
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Xml.Linq;
    using System.Xml.Serialization;

    /// <summary>
    /// Provides a representation of the Field element.
    /// </summary>
    public class FieldElement
    {
        /// <summary>
        /// Prevents a default instance of the FieldElement class from being created.
        /// </summary>
        private FieldElement()
        {
        }

        /// <summary>
        /// Gets the name of the report definition element this class represents.
        /// </summary>
        public static string ElementName
        {
            get { return "Field"; }
        }

        /// <summary>
        /// Gets or sets the value of the DataField child element.
        /// </summary>
        public string DataField { get; set; }

        /// <summary>
        /// Gets or sets the value of the Name attribute.
        /// </summary>
        [XmlAttribute("Name")]
        public string Name { get; set; }

        /// <summary>
        /// Gets or sets the value of the Value child element.
        /// </summary>
        public string Value { get; set; }
    }
}
